import { getUrlParams } from "../script/fn";
import * as M from "./moduleList";
const { buildinfo, version } = getUrlParams();
console.log(buildinfo,'buildinfo')
export const series = function(module) {
  const type = {
    initial: 1,
    "1-2.0.0": 2,
    "2-2.0.0": 2,
    "4-2.0.0": 2,
    "5-2.0.0": 2,
    "6-2.0.0": 2,
    "2-2.1.0": 3,
    "3-2.1.0": 3,
    "4-2.1.0": 3,
    "5-2.1.0": 3,
    "6-2.1.0": 3,
    "3-2.7.0": 3,
    "4-2.7.0": 3,
    "5-2.7.0": 3,
    "7-2.7.0": 3,
    "8-2.7.0": 3,
    "9-2.7.0": 4,
    "11-2.7.0":3,
    // "11-2.7.0": 5,
    // "1000-2.7.0":5//5是最新ui
    "1000-2.7.0":3//5是最新ui
  };
  
  console.log(type,'type===')
  if (!buildinfo) return M[module + type.initial];
 if (!type[version + "-" + buildinfo]){
      return M[module + type[Object.keys(type).pop()]];
  }
    return M[module + type[version + "-" + buildinfo]];
};
